Integrand size = 16, antiderivative size = 92 \[ \int \frac {d+e x}{1+x^2+x^4} \, dx=-\frac {d \arctan \left (\frac {1-2 x}{\sqrt {3}}\right )}{2 \sqrt {3}}+\frac {d \arctan \left (\frac {1+2 x}{\sqrt {3}}\right )}{2 \sqrt {3}}+\frac {e \arctan \left (\frac {1+2 x^2}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {1}{4} d \log \left (1-x+x^2\right )+\frac {1}{4} d \log \left (1+x+x^2\right ) \]
[Out]
Time = 0.05 (sec) , antiderivative size = 92, normalized size of antiderivative = 1.00, number of steps used = 15, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {1687, 12, 1108, 648, 632, 210, 642, 1121} \[ \int \frac {d+e x}{1+x^2+x^4} \, dx=-\frac {d \arctan \left (\frac {1-2 x}{\sqrt {3}}\right )}{2 \sqrt {3}}+\frac {d \arctan \left (\frac {2 x+1}{\sqrt {3}}\right )}{2 \sqrt {3}}+\frac {e \arctan \left (\frac {2 x^2+1}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {1}{4} d \log \left (x^2-x+1\right )+\frac {1}{4} d \log \left (x^2+x+1\right ) \]
[In]
[Out]
Rule 12
Rule 210
Rule 632
Rule 642
Rule 648
Rule 1108
Rule 1121
Rule 1687
Rubi steps \begin{align*} \text {integral}& = \int \frac {d}{1+x^2+x^4} \, dx+\int \frac {e x}{1+x^2+x^4} \, dx \\ & = d \int \frac {1}{1+x^2+x^4} \, dx+e \int \frac {x}{1+x^2+x^4} \, dx \\ & = \frac {1}{2} d \int \frac {1-x}{1-x+x^2} \, dx+\frac {1}{2} d \int \frac {1+x}{1+x+x^2} \, dx+\frac {1}{2} e \text {Subst}\left (\int \frac {1}{1+x+x^2} \, dx,x,x^2\right ) \\ & = \frac {1}{4} d \int \frac {1}{1-x+x^2} \, dx-\frac {1}{4} d \int \frac {-1+2 x}{1-x+x^2} \, dx+\frac {1}{4} d \int \frac {1}{1+x+x^2} \, dx+\frac {1}{4} d \int \frac {1+2 x}{1+x+x^2} \, dx-e \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+2 x^2\right ) \\ & = \frac {e \tan ^{-1}\left (\frac {1+2 x^2}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {1}{4} d \log \left (1-x+x^2\right )+\frac {1}{4} d \log \left (1+x+x^2\right )-\frac {1}{2} d \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,-1+2 x\right )-\frac {1}{2} d \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+2 x\right ) \\ & = -\frac {d \tan ^{-1}\left (\frac {1-2 x}{\sqrt {3}}\right )}{2 \sqrt {3}}+\frac {d \tan ^{-1}\left (\frac {1+2 x}{\sqrt {3}}\right )}{2 \sqrt {3}}+\frac {e \tan ^{-1}\left (\frac {1+2 x^2}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {1}{4} d \log \left (1-x+x^2\right )+\frac {1}{4} d \log \left (1+x+x^2\right ) \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.17 (sec) , antiderivative size = 98, normalized size of antiderivative = 1.07 \[ \int \frac {d+e x}{1+x^2+x^4} \, dx=\frac {1}{6} i \left (\sqrt {6-6 i \sqrt {3}} d \arctan \left (\frac {1}{2} \left (-i+\sqrt {3}\right ) x\right )-\sqrt {6+6 i \sqrt {3}} d \arctan \left (\frac {1}{2} \left (i+\sqrt {3}\right ) x\right )+2 i \sqrt {3} e \arctan \left (\frac {\sqrt {3}}{1+2 x^2}\right )\right ) \]
[In]
[Out]
Time = 0.12 (sec) , antiderivative size = 68, normalized size of antiderivative = 0.74
method | result | size |
default | \(-\frac {d \ln \left (x^{2}-x +1\right )}{4}+\frac {\left (\frac {d}{2}+e \right ) \sqrt {3}\, \arctan \left (\frac {\left (2 x -1\right ) \sqrt {3}}{3}\right )}{3}+\frac {d \ln \left (x^{2}+x +1\right )}{4}+\frac {\left (\frac {d}{2}-e \right ) \arctan \left (\frac {\left (1+2 x \right ) \sqrt {3}}{3}\right ) \sqrt {3}}{3}\) | \(68\) |
risch | \(\frac {d \ln \left (36 d^{2} x^{2}+48 e^{2} x^{2}+36 d^{2} x +48 e^{2} x +36 d^{2}+48 e^{2}\right )}{4}+\frac {\sqrt {3}\, d \arctan \left (\frac {8 e^{2} \sqrt {3}\, x}{3 \left (3 d^{2}+4 e^{2}\right )}-\frac {4 e^{2} \sqrt {3}}{3 \left (3 d^{2}+4 e^{2}\right )}+\frac {2 d^{2} \sqrt {3}\, x}{3 d^{2}+4 e^{2}}-\frac {d^{2} \sqrt {3}}{3 d^{2}+4 e^{2}}\right )}{6}-\frac {\sqrt {3}\, d \arctan \left (\frac {d \sqrt {3}}{2 e}\right )}{3}+\frac {\sqrt {3}\, e \arctan \left (\frac {8 e^{2} \sqrt {3}\, x}{3 \left (3 d^{2}+4 e^{2}\right )}-\frac {4 e^{2} \sqrt {3}}{3 \left (3 d^{2}+4 e^{2}\right )}+\frac {2 d^{2} \sqrt {3}\, x}{3 d^{2}+4 e^{2}}-\frac {d^{2} \sqrt {3}}{3 d^{2}+4 e^{2}}\right )}{3}+\frac {\sqrt {3}\, d \arctan \left (\frac {8 e^{2} \sqrt {3}\, x}{3 \left (3 d^{2}+4 e^{2}\right )}+\frac {4 e^{2} \sqrt {3}}{3 \left (3 d^{2}+4 e^{2}\right )}+\frac {2 d^{2} \sqrt {3}\, x}{3 d^{2}+4 e^{2}}+\frac {d^{2} \sqrt {3}}{3 d^{2}+4 e^{2}}\right )}{6}-\frac {\sqrt {3}\, e \arctan \left (\frac {8 e^{2} \sqrt {3}\, x}{3 \left (3 d^{2}+4 e^{2}\right )}+\frac {4 e^{2} \sqrt {3}}{3 \left (3 d^{2}+4 e^{2}\right )}+\frac {2 d^{2} \sqrt {3}\, x}{3 d^{2}+4 e^{2}}+\frac {d^{2} \sqrt {3}}{3 d^{2}+4 e^{2}}\right )}{3}-\frac {d \ln \left (36 d^{2} x^{2}+48 e^{2} x^{2}-36 d^{2} x -48 e^{2} x +36 d^{2}+48 e^{2}\right )}{4}\) | \(478\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 65, normalized size of antiderivative = 0.71 \[ \int \frac {d+e x}{1+x^2+x^4} \, dx=\frac {1}{6} \, \sqrt {3} {\left (d - 2 \, e\right )} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x + 1\right )}\right ) + \frac {1}{6} \, \sqrt {3} {\left (d + 2 \, e\right )} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) + \frac {1}{4} \, d \log \left (x^{2} + x + 1\right ) - \frac {1}{4} \, d \log \left (x^{2} - x + 1\right ) \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 1.66 (sec) , antiderivative size = 923, normalized size of antiderivative = 10.03 \[ \int \frac {d+e x}{1+x^2+x^4} \, dx=\text {Too large to display} \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 65, normalized size of antiderivative = 0.71 \[ \int \frac {d+e x}{1+x^2+x^4} \, dx=\frac {1}{6} \, \sqrt {3} {\left (d - 2 \, e\right )} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x + 1\right )}\right ) + \frac {1}{6} \, \sqrt {3} {\left (d + 2 \, e\right )} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) + \frac {1}{4} \, d \log \left (x^{2} + x + 1\right ) - \frac {1}{4} \, d \log \left (x^{2} - x + 1\right ) \]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 65, normalized size of antiderivative = 0.71 \[ \int \frac {d+e x}{1+x^2+x^4} \, dx=\frac {1}{6} \, \sqrt {3} {\left (d - 2 \, e\right )} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x + 1\right )}\right ) + \frac {1}{6} \, \sqrt {3} {\left (d + 2 \, e\right )} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, x - 1\right )}\right ) + \frac {1}{4} \, d \log \left (x^{2} + x + 1\right ) - \frac {1}{4} \, d \log \left (x^{2} - x + 1\right ) \]
[In]
[Out]
Time = 0.13 (sec) , antiderivative size = 118, normalized size of antiderivative = 1.28 \[ \int \frac {d+e x}{1+x^2+x^4} \, dx=-\ln \left (x-\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {d}{4}+\frac {\sqrt {3}\,d\,1{}\mathrm {i}}{12}+\frac {\sqrt {3}\,e\,1{}\mathrm {i}}{6}\right )+\ln \left (x+\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {d}{4}-\frac {\sqrt {3}\,d\,1{}\mathrm {i}}{12}+\frac {\sqrt {3}\,e\,1{}\mathrm {i}}{6}\right )+\ln \left (x-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (-\frac {d}{4}+\frac {\sqrt {3}\,d\,1{}\mathrm {i}}{12}+\frac {\sqrt {3}\,e\,1{}\mathrm {i}}{6}\right )+\ln \left (x+\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {d}{4}+\frac {\sqrt {3}\,d\,1{}\mathrm {i}}{12}-\frac {\sqrt {3}\,e\,1{}\mathrm {i}}{6}\right ) \]
[In]
[Out]